package puf.m2.automaton;

import java.security.InvalidParameterException;
import java.util.Collection;

public class Walk extends WordImpl {

    public Walk(Collection<Letter> string) {
        this((Letter[]) string.toArray());
    }

    public Walk(Letter[] string) {
        super();
        if (!isWalk(string))
            throw new InvalidParameterException(
                    "The string " + string + " is not a walk.");
    }

    /**
     * Check if this string is a walk
     * @param string
     * @return
     */
    public boolean isWalk(Letter[] string) {
        //TODO
        return false;
    }

    /**
     * Conduct the theta computation
     * @return
     *      The corresponding tile
     */
    public Tile theta() {
        //TODO
        return null;
    }
}
